using GameFramework;
using UnityEngine;

namespace LS
{
    public class VarBoundsInt : Variable<BoundsInt>
    {
        public VarBoundsInt() : base()
        {
            
        }
        
        /// <summary>
        /// 从 BoundsInt 到 VarBoundsInt 变量类的隐式转换。
        /// </summary>
        /// <param name="value">值。</param>
        public static implicit operator VarBoundsInt(BoundsInt value)
        {
            VarBoundsInt varValue = ReferencePool.Acquire<VarBoundsInt>();
            varValue.Value = value;
            return varValue;
        }

        /// <summary>
        /// 从 VarBoundsInt 变量类到 BoundsInt 的隐式转换。
        /// </summary>
        /// <param name="value">值。</param>
        public static implicit operator BoundsInt(VarBoundsInt value)
        {
            return value.Value;
        }
    }
}